<?php
    class battles{
        public $id;
        public $title;
        public $sub_title;
        public $type;
        public $running;
        public $max_vote;
        public $vote_start_from;
        public $date_created;
        public $last_update;
        public $category;
        public function battles($_id,$_title,$_sub_title,$_type,$_running,$_max_vote,$_vote_start_from,$_date_created,$_last_update,$_category)
        {
            $this->id = $_id;
            $this->title = $_title;
            $this->sub_title = $_sub_title;
            $this->type = $_type;
            $this->running = $_running;
            $this->max_vote = $_max_vote;
            $this->vote_start_from = $_vote_start_from;
            $this->date_created = $_date_created;
            $this->last_update = $_last_update;
            $this->category = $_category;
        }
    }
?>